<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浏览器中事件的传递</title>
    <style>
        .zone{
            background-color: aliceblue;
            height: 120px;
            width: 100%;

        }
    </style>
</head>
<body>
<div id="app">
    <div class="zone" id="outerZone">
        <button id="innerZone1">无修饰符</button>
        <br>
        <button id="innerZone2">有修饰符</button>
    </div>
</div>
<script>
    let outerZone = document.getElementById("outerZone")
    let innerZone1 = document.getElementById("innerZone1")
    let innerZone2 = document.getElementById("innerZone2")


    outerZone.onclick = function (event) {
        console.log("点击了 div 区域");
    }

    innerZone1.onclick = function (event) {
        console.log("点击了 innerZone1 区域");
    }

    innerZone2.onclick = function (event) {
        console.log("点击了 innerZone2 区域");
    }

</script>
</body>
</html>